package cn.chia.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * TblGroupPurchase entity. @author MyEclipse Persistence Tools
 */

public class TblGroupPurchase implements java.io.Serializable {

	// Fields

	private Integer id;
	private TblItems tblItems;
	private String startTime;
	private String endTime;
	private Float prePrice;
	private Float nowPrice;
	private Integer totalCount;
	private Integer nowCount;
	private Long time;
	private Integer state;
	private Set orderses = new HashSet(0);

	// Constructors

	/** default constructor */
	public TblGroupPurchase() {
	}

	/** minimal constructor */
	public TblGroupPurchase(TblItems tblItems, String startTime,
			String endTime, Float prePrice, Float nowPrice) {
		this.tblItems = tblItems;
		this.startTime = startTime;
		this.endTime = endTime;
		this.prePrice = prePrice;
		this.nowPrice = nowPrice;
	}

	/** full constructor */
	public TblGroupPurchase(TblItems tblItems, String startTime,
			String endTime, Float prePrice, Float nowPrice, Integer totalCount,
			Integer nowCount, Long time, Integer state, Set orderses) {
		this.tblItems = tblItems;
		this.startTime = startTime;
		this.endTime = endTime;
		this.prePrice = prePrice;
		this.nowPrice = nowPrice;
		this.totalCount = totalCount;
		this.nowCount = nowCount;
		this.time = time;
		this.state = state;
		this.orderses = orderses;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public TblItems getTblItems() {
		return this.tblItems;
	}

	public void setTblItems(TblItems tblItems) {
		this.tblItems = tblItems;
	}

	public String getStartTime() {
		return this.startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return this.endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public Float getPrePrice() {
		return this.prePrice;
	}

	public void setPrePrice(Float prePrice) {
		this.prePrice = prePrice;
	}

	public Float getNowPrice() {
		return this.nowPrice;
	}

	public void setNowPrice(Float nowPrice) {
		this.nowPrice = nowPrice;
	}

	public Integer getTotalCount() {
		return this.totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}

	public Integer getNowCount() {
		return this.nowCount;
	}

	public void setNowCount(Integer nowCount) {
		this.nowCount = nowCount;
	}

	public Long getTime() {
		return this.time;
	}

	public void setTime(Long time) {
		this.time = time;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Set getOrderses() {
		return this.orderses;
	}

	public void setOrderses(Set orderses) {
		this.orderses = orderses;
	}

}